from Tools import Tools
import pytest,os

if __name__ == '__main__':
    Tools().Log()
    pytest.main(['-s','./Case/ApiCase.py',
                 '--html=./report/api.html',
                 '--alluredir=./report/allure'])
    os.system('allure generate ./report/allure -o ./report/allurereport --clean')
    Tools().email(['./report/api.log','./report/api.html','./report/allurereport/index.html'])